package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.vo.DishVoo;
import com.itheima.dto.DishFlavorDto;
import com.itheima.vo.DishVo;
import com.itheima.vo.PhoneDishVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author YangJiaHao
 */
@Transactional
public interface DishService {

    PageInfo<DishVoo> page(String name, Integer page, Integer pageSize, Integer type);

    Boolean addDish(DishFlavorDto dishFlavorDto);

    Boolean modifyDish(DishFlavorDto dishFlavorDto);

    DishVo getById(String id);

    Boolean delete( String ids);

    Boolean status(Integer status, String ids);

    List<DishVo> getList(String categoryId);

    List<PhoneDishVo> list(String categoryId, Integer status);
}
